package org.massi.imslp.query;

/**
 * Hold user name and password to access the Wiki pages.
 */
public interface ICredentials
{

	/**
	 * Empty string constant
	 */
	public static final String EMPTY = "";


	/**
	 * User name
	 * 
	 * @return the user name
	 */
	String getUsername();


	/**
	 * Password
	 * 
	 * @return the password
	 */
	String getPassword();

	/**
	 * Default empty instance: user name and password are empty
	 */
	public static ICredentials EMPTY_CREDENTIALS = new ICredentials()
	{

		/*
		 * (non-Javadoc)
		 * 
		 * @see org.massi.imslp.query.ICredentials#getUsername()
		 */
		@Override
		public String getUsername()
		{
			return EMPTY;
		}


		/*
		 * (non-Javadoc)
		 * 
		 * @see org.massi.imslp.query.ICredentials#getPassword()
		 */
		@Override
		public String getPassword()
		{
			return EMPTY;
		}
	};
}
